#include <iostream>
#include <string>
#include <functional>
#include "log.hpp"
#include "TcpServer.hpp"

void Usage()
{
    std::cout << "\n\r" << "[Usage]:prot" << "\n"
              << std::endl;
}

int main(int argc, char *argv[])
{

    if (argc != 2)
    {
        Usage();
        return -1;
    }

    std::string port_1 = argv[1];
    uint16_t port = std::stoi(port_1);
    int opt = 1;
    

    TcpServer *tsur = new TcpServer(port);
    
    tsur->Init();
    tsur->Start();
    lg(INFO, "Server start");

    return 0;
}
